import XB from './components/XB.vue'
import XK from './components/XK.vue'
import DM from './components/DM.vue'
import FZ from './components/FZ.vue'

import Home from './components/Home.vue'
import Login from './components/Login.vue'

export default{
    // mode: 'history',
    hashbang: false,
    history: true,
    routes: [
        {
            path:'/',
            component:Login
        },
        {
            path: '/login',
            component: Login
        },
        {
            path: '/home',
            component: Home,
            children: [
                {path: '/home/XB', component: XB},
                {path: '/home/XK', component: XK},
                {path: '/home/DM', component: DM},
                {path: '/home/FZ', component: FZ}
                // ,
                // {path: '/home/login', component: Login},
                // {path: '/home/reg', component: Reg}
            ]
        },
        {path: '*', redirect: '/login'}  //404登陆界面
    ]
}
